package com.djl.sqtg.service;


import com.djl.sqtg.entity.GoodsSales;
import com.djl.sqtg.entity.Orders;

import java.util.Date;
import java.util.List;

public interface IOrderService {
    Integer addOrder(Orders orders);
    Integer deleteOrder(Integer oid);
    Integer updateOrderState(Integer oid,Integer orderstate);
    Orders findOrdersByOid(Integer oid);
    Orders findOrdersByOrdernumber(String ordernumber);
//    List<GoodsSales> findGoodsDaySalesByOrders(String date);
//    List<GoodsSales> getGoodsBygids(Integer[] gids);
    List<Orders> getUserOrderByState( Integer uid,  Integer state);
    List<GoodsSales> goodsSalesByOrders(String date);
    List<GoodsSales> goodsSevenDaySalesByOrders(List<String> date);
    List<GoodsSales> goodsMonthSalesByOrders(String month);
    List<String> getGoosSales(String date);
    List<Orders> getAllOrders(Integer pageNum,  Integer pageSize);
    Integer getAllOrdersNum();
//    List<Orders> getOrdersBySearch(String dateSelect,String username,String telep,String ordernumber, Integer pageNum,  Integer pageSize);
//    Integer getOrdersNumBySearch(String dateSelect,String username,String telep,String ordernumber);
    Float getTodayTurnover(String date);
    Integer getTodaySales(String date);
    Integer getCategoryWeekSales(Integer gcid,String date);
    String getCategoryNameByGcid(Integer gcid);

    List<Orders> getOrdersBySearch(    String startDate,String endDate,String username,String colonelname,String telep,String ordernumber,Integer orderstate, Integer pageNum,  Integer pageSize);
    Integer getOrdersNumBySearch(    String startDate,String endDate,String username,String colonelname,String telep,String ordernumber,Integer orderstate);
    Float totalMoney();
    Integer todayOrders(String date);
    Float todayMoney(String date);
    Integer orderSevenNum(String startDate,String endDate);
    Float sevenTurnover(String startDate,String endDate);
    List<Orders> getUserNoAcceptOrderByUidCid(Integer uid,Integer cid);
    Orders   getUserNoAcceptOrderByOrdernumber(String ordernumber);
    Integer updateOrderStateByNum(String ordernumber,Integer orderstate);
    List<Orders> getOrdersByState( Integer orderstate);
    Integer getSevenOrder(String date);
}
